<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<c:set var="srcPath" value="${redis:getSysConfig('sysFileVisitRoot_back')}"/>
<c:set var="uploadPath" value="${redis:getSysConfig('uploadFileVisitRoot')}"/>
<script type="text/javascript">
    /**
     * 查看分类详情
     */
    function detailInfo(id){
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/dayRecommend/getDayRecommendLBTInfo.sjson",
            data: {broadcastingId:id},
            success: function(result){
                var data = JSON.parse(result.data);
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                /**设置展示信息**/
                $("#d_photo").html("<img id='uploadImg_detail_1' class='uploadImg' onMouseOver='showDetailBigImage(1,3,3,0)'  onMouseOut='showDetailRebackImage(1,1,1)' src='${uploadPath}/"+data.broadcastingImageUrl+"' onerror='this.src=\"${srcPath}/common/images/mrbj.png\"' width='50px' height='50px' />");
                $("#d_title").html(data.title);
                $("#d_synopsis").html(data.synopsis);
                $("#d_linkUrl").html(data.linkUrl);
                $("#d_sortCode").html(data.sortCode);
               /* if(data.showLocation == 1){
                    $("#d_showLocation").html("<font class='color_001'>首页大轮播图</font>");
                }else if(data.showLocation == 2){
                    $("#d_showLocation").html("<font class='color_001'>首页小滚屏图</font>");
                }else if(data.showLocation == 3){
                    $("#d_showLocation").html("<font class='color_001'>首页HOT图</font>");
                }else if(data.showLocation == 4){
                    $("#d_showLocation").html("<font class='color_001'>首页小滚屏图下方广告位</font>");
                }else if(data.showLocation == 5){
                    $("#d_showLocation").html("<font class='color_001'>首页下方轮播图上方广告位</font>");
                }else if(data.showLocation == 6){
                    $("#d_showLocation").html("<font class='color_001'>首页下方轮播图</font>");
                }*/
                if(data.isShow == 0){
                    $("#d_isShow").html("<font class='color_002'>未显示</font>");
                }else if(data.isShow == 1){
                    $("#d_isShow").html("<font class='color_001'>已显示</font>");
                }
            }
        });
    }
</script>
<!--详情模态框（Modal） -->
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">每日推荐轮播图详情</h5>
			</div>
			<div class="modal-body">
				<table id="detailTable" align="center" class="addOrEditTable table table-bordered" style="width:100%;">
					<tr>
						<td class="toright_td" width="150px">图片:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_photo"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">主题 :</td>
						<td  class="toleft_td">&nbsp;&nbsp;<span id="d_title"></span>
						</td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">简介:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_synopsis"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">链接:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_linkUrl"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">排序:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_sortCode"></span></td>
					</tr>
					<%--<tr>
						<td class="toright_td" width="150px">显示位置:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_showLocation"></span></td>
					</tr>--%>
					<tr>
						<td class="toright_td" width="150px">是否显示:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_isShow"></span></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>